<?php $this->Html->addCrumb('Approval Notification Setting'); ?>
<div id="left" style="float:left">
    <div class="title"><?php __('Approval Notification Setting'); ?></div>
    <div class="div_content">
       <div style="height: 20px;">
  <div id='message_success'></div>
         </div>
<!--        <div style="background:#ccc;font-size: 15px;color: black;padding: 5px;">
            Archive messages automatically after
        </div>-->
           <table id="category_table" cellspacing="0" class="tablesorter">
             <tbody>
             <tr><td width="50px" align="center"><input type="radio" name="archive" class="archive"  value="1"  <?php if($setdata['Aprovalnotification']['status']==1){?> checked="checked"<?php }?>/></td><td>On</td></tr>
             <tr><td width="50px" align="center"><input type="radio" name="archive" class="archive"  value="0"  <?php if($setdata['Aprovalnotification']['status']==0){?> checked="checked"<?php }?>/></td><td>Off</td></tr>
             <tbody>
             </table>       
            </div>
            
        </div>
<?php //echo $html->script(array("jquery.pagination.js", "jquery.tablesorter.min.js", "jquery.tablednd.js")); ?>
<script type="text/javascript">
jQuery(document).ready(function(){       
        //////////////////////////setting////////////////////
        jQuery(".archive").click(function()
        {
        var mval=jQuery(this).val();
        jQuery.ajax({
            url : baseurl+"sellers/setting_process/"+mval,
                    success : function (html) {
            jQuery('#message_success').html('Setting Updated successfully.');
            jQuery('#message_success').addClass('msg_success');
            jQuery("#message_success").show();
            jQuery("#message_success").animate({ top: "0px"}, 1000 ).fadeOut(1000);
                        }
                    });
            });
});
</script>